package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author spt
 * @description 预约设置DAO
 * @date 2019/9/29
 **/
@Mapper
public interface OrderSettingDao {
    /**
     * 日历显示数据
     * @param
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(@Param("year") Integer year,@Param("month") Integer month);
//修改可预约的人数
    int update(Date orderDate);
//预约完进行修改操作
    void updateBy(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    OrderSetting selectByDate(@Param("orderDate") Date orderDate);

    //List<OrderSetting> selectAll(@Param("year") Integer year, @Param("month") Integer month);

    //void add(OrderSetting orderSetting);
}
